﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcBlog.ViewModels.UserManagerListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	UserManager
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>UserManager</h2>

      <% using (Ajax.BeginForm("Index", "UserManager", new AjaxOptions { UpdateTargetId = "usersList" }))
            {%>
        <%: Html.ValidationSummary(true)%>

        <fieldset>
        <legend>nach Username filtern</legend>
            
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.searchRequest, new { @class = "searchTextbox" })%>
            </div>
            
            <p>
                <input type="submit" value="Suchen" />
            </p>
        </fieldset>

    <% } %>

    <div id="usersList">
                   <% Html.RenderPartial("UsersList"); %>
    </div>


    

</asp:Content>
